//
//  DefineFlowLayout.h
//  TheCollectionView
//
//  Created by ODSdev2 on 15/9/16.
//  Copyright (c) 2015年 liubenwang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DefineFlowLayout;
@protocol DefineFlowLayoutDelegate <NSObject>

- (CGFloat)defineFlowLayout:(DefineFlowLayout *)flowLayout andWith:(CGFloat)width atIndexth:(NSIndexPath *)indexPath;

@end
@interface DefineFlowLayout : UICollectionViewFlowLayout

@property (nonatomic, assign) int columnsCount;/**<列数*/
@property (nonatomic, assign) UIEdgeInsets sectionInset;/**<分组边框*/
@property (nonatomic, assign) CGFloat columnsMargin;/**<列间隔*/
@property (nonatomic, assign) CGFloat rowMargin;/**<行间距*/

@property (nonatomic, weak) id<DefineFlowLayoutDelegate> delegate;
@end
